package com.zhang.admin.service;


import com.zhang.admin.vo.CreateUpdateUserParams;
import com.zhang.admin.vo.DeleteUserParams;
import com.zhang.admin.vo.QueryUserByPageParams;
import com.zhang.common.core.page.Navigator;
import com.zhang.common.core.po.admin.SysUser;
import com.zhang.common.core.dto.UserInfo;
import com.zhang.admin.vo.ViewUserVo;

/**
 * @ClassName UserService
 * @Description
 * @Author
 * @Date 2019/10/31 20:35
 * @Version V1.0
 **/

public interface UserService {
    /**
     * 根据用户民查询用户信息
     * @param username
     * @return
     */
    public UserInfo findByUsername(String username);

    public void createUser(CreateUpdateUserParams createUserVo);

    public void deleteUser(DeleteUserParams deleteUserVo);

    public void updateUser(UpdateUserParams updateUserVo);

    public Navigator<SysUser> querySysUserByPage(QueryUserByPageParams querySysUserByPageParams);

    public ViewUserVo currentUserInfo();
}
